Skip to content

Conversation

@vuillaut
Copy link
Member

Fixes #171

The interpolation_image_shape parameter can now be passed directly as an arg to mapper constructors (BilinearMapper, ...), instead of being silently ignored.

Changes:

  • Added super().init() call, this enables traitlets (like interpolation_image_shape) to be initialized from kwargs
  • Added unit tests for interpolation methods to test this issue

]

class ImageMapper(TelescopeComponent):
class ImageMapper(Component):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You would need to remove the passing of the subarray in line reader-L386 and reader-L393.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are somo FIXMEs and TODOs for setting up the configuration of the ImageMapper. I can fix this in a follow-up PR. Probably the ImageMapper trait in the reader should just be a ComponentName.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will let you handle any more todos :)

Copy link
Member

@TjarkMiener TjarkMiener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @vuillaut

@TjarkMiener TjarkMiener merged commit a87d8fb into main Oct 13, 2025
8 checks passed
@TjarkMiener TjarkMiener deleted the fix-issue-171-interpolation-image-shape branch October 13, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: interpolation_image_shape argument ignored in BilinearMapper constructor

3 participants